package offer.singleton;
// 静态内部类 推荐写法
public class Four {
    private Four() {
    }

    private static class SingletonHolder {
        private static Four obj = new Four();
    }

    public static Four getObj() {
        return SingletonHolder.obj;
    }
}
